#define MY_ENCODING_TYPE  (PKCS_7_ASN_ENCODING | X509_ASN_ENCODING)
//#define NOTREALLYVISTA 1

#define BAD_PARAM		-1
#define MEMORY_ERROR	-2
#define CRYPT_ACQUIRE_CONTEXT	-3
#define CRYPT_CREATE_HASH	-4
#define CRYPT_HASH_DATA	-5
#define CRYPT_GET_HASH_PARAM	-6
#define ENCODE_SIZE_FAIL	-7
#define ENCODE_FAIL	-7
#define CALL_SETDATA_FIRST	-8
#define ENCODE_ALGID_FAIL	-9
#define ENCODE_HASH_FAIL	-9
#define ENCODE_VER_FAIL	-10
#define ENCODE_OUTERSEQ_FAIL	-11
#define	CALL_CREATE_REQUEST_FIRST	-12
#define ALLOC_AND_RETRY	-13
#define	HASH_ALG_UNSUPPORTED	-14
#define DECODE_TIMESTAMPRESP_FAIL	-15
#define DECODE_PKISTATUSINFO_FAIL	-16
#define TIMESTAMP_NOT_ISSUED	-17
#define DECODE_TIMESTAMPTOKEN_FAIL	-18
#define DECODE_TIMESTAMPCONTENT_FAIL	-19
#define DECODE_TIMESTAMPSIGNER_FAIL	-20
#define CREATE_CERT_CHAIN_ENGINE_FAIL	-21
#define GET_CERT_CHAIN_FAIL	-22
#define TIMESTAMP_SERVER_VALIDATION_FAIL	-23
#define TIMESTAMP_SERVER_EKU_FAIL	-24
#define TIMESTAMP_SERVER_EKU_INVALID	-25
#define DECODE_TSTCONTENT_FAIL	-26
#define DECODE_TSTCONTENT_VER_FAIL	-27
#define	DECODE_TSTCONTENT_IMPRINT_FAIL	-28
#define DECODE_TSTCONTENT_IMPRINT_ALGID_FAIL	-29
#define DECODE_TSTCONTENT_IMPRINT_HASH_FAIL	-30
#define DECODE_TSTCONTENT_TIMESTAMP_FAIL	-31
#define DECODE_TSTCONTENT_IMPRINT_HASH_WRONGALG	-32
#define DECODE_TSTCONTENT_IMPRINT_HASH_WRONGHASH	-33
#define TSTCONTENT_TIME_CONVERSION_FAIL	-34
#define DECODE_RESPONSE_FIRST	-35
#define DECODE_OCSPRESP_FAIL	-36
#define CALL_DECODE_RESPONSE_FIRST	-37
#define DECODE_OCSPRESPONSE_FAIL	-38
#define DECODE_OCSPRESPONSEEXP_FAIL	-39
#define DECODE_OCSPRESPONSEBYTES_FAIL	-40
#define DECODE_OCSPRESPONSERESPONSE_FAIL	-41
#define DECODE_BASICOCSPRESPONSE_FAIL	-42
#define DECODE_BASICOCSPRESPONSEEXP_FAIL	-43
#define DECODE_OCSPCERTS_FAIL	-44